package com.jams.goodox.activity.home;

import com.google.gson.annotations.SerializedName;
import com.jams.goodox.entity.GoodBuyBean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/11/6.
 */

public class OrderResp implements Serializable{

    private List<DataBean> data;

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * ordersn : B06310711228938
         * process : [{"title":"订单已提交","time":"2017-11-06 09:17:51"}]
         * product : [{"productid":"214","orderid":"258","title":"JB8096","preview":"http://app.tongmenhui.net/resource/upload/2017/0929/a99ac631b843bec1691b82aee7cd5df7.jpg","option":[{"锁体":{"name":"王力双块","price":"0"}},{"选项":{"name":"遥控","price":"0"}},{"物流":{"name":"德邦快递","price":"0"}}],"price":"2580.00","num":"2"}]
         * info : {"city":"北京市 北京市 东城区","address":"测试","mobile":"1368989866","userName":"测试"}
         * num : 2
         * status : 1
         * tag : 待付款
         * payable : 5160.00
         * transit : 德邦快递
         * payType : 押金支付
         * time : 2017-11-06 09:17:51
         */

        private String ordersn;
        private InfoBean info;
        private String num;
        private String status;
        private String tag;
        private String payable;
        private String transit;
        private String payType;
        private String time;
        private List<ProcessBean> process;
        private List<ProductBean> product;

        public String getOrdersn() {
            return ordersn;
        }

        public void setOrdersn(String ordersn) {
            this.ordersn = ordersn;
        }

        public InfoBean getInfo() {
            return info==null?new InfoBean():info;
        }

        public void setInfo(InfoBean info) {
            this.info = info;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getPayable() {
            return payable;
        }

        public void setPayable(String payable) {
            this.payable = payable;
        }

        public String getTransit() {
            return transit;
        }

        public void setTransit(String transit) {
            this.transit = transit;
        }

        public String getPayType() {
            return payType;
        }

        public void setPayType(String payType) {
            this.payType = payType;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public List<ProcessBean> getProcess() {
            return process;
        }

        public void setProcess(List<ProcessBean> process) {
            this.process = process;
        }

        public List<ProductBean> getProduct() {
            return product;
        }

        public void setProduct(List<ProductBean> product) {
            this.product = product;
        }

        public static class InfoBean implements Serializable{
            /**
             * city : 北京市 北京市 东城区
             * address : 测试
             * mobile : 1368989866
             * userName : 测试
             */

            private String city;
            private String address;
            private String mobile;
            private String userName;

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getUserName() {
                return userName;
            }

            public void setUserName(String userName) {
                this.userName = userName;
            }
        }

        public static class ProcessBean implements Serializable{
            /**
             * title : 订单已提交
             * time : 2017-11-06 09:17:51
             */

            private String title;
            private String time;

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }
        }

        public static class ProductBean implements Serializable{
            /**
             * productid : 214
             * orderid : 258
             * title : JB8096
             * preview : http://app.tongmenhui.net/resource/upload/2017/0929/a99ac631b843bec1691b82aee7cd5df7.jpg
             * option : [{"锁体":{"name":"王力双块","price":"0"}},{"选项":{"name":"遥控","price":"0"}},{"物流":{"name":"德邦快递","price":"0"}}]
             * price : 2580.00
             * num : 2
             */

            private String productid;
            private String orderid;
            private String title;
            private String preview;
            private String price;
            private String num;
            @SerializedName("sjkfsjkdfjk")
            private List<GoodBuyBean.Data.OptionBean> option;
            private double allMoney;
            private String rating="5";
            private List<String> commentPic;
            private String comment;

            public String getRating() {
                return rating;
            }

            public void setRating(String rating) {
                this.rating = rating;
            }

            public List<String> getCommentPic() {
                return commentPic;
            }

            public void setCommentPic(List<String> commentPic) {
                this.commentPic = commentPic;
            }

            public String getComment() {
                return comment;
            }

            public void setComment(String comment) {
                this.comment = comment;
            }

            public String getProductid() {
                return productid;
            }

            public void setProductid(String productid) {
                this.productid = productid;
            }

            public String getOrderid() {
                return orderid;
            }

            public void setOrderid(String orderid) {
                this.orderid = orderid;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPreview() {
                return preview;
            }

            public void setPreview(String preview) {
                this.preview = preview;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            public List<GoodBuyBean.Data.OptionBean> getOption() {
                return option;
            }

            public void setOption(List<GoodBuyBean.Data.OptionBean> option) {
                this.option = option;
            }

            public double getAllMoney() {
                return allMoney;
            }

            public void setAllMoney(double allMoney) {
                this.allMoney = allMoney;
            }
        }
    }
}
